Cover | TOC | Chap | Prev Chap | Prev Fig | Next Fig | Next Chap |
|
Figure 6.10
An archway with pieces of the roof built within translated, rotated coordinate systems |
|
Click on the image to view the VRML scene. |
#VRML V2.0 utf8 # The VRML 2.0 Sourcebook # Copyright (c) 1997 # Andrea L. Ames, David R. Nadeau, and John L. Moreland Group { children [ # Ground Shape { appearance DEF White Appearance { material Material { } } geometry Box { size 25.0 0.1 25.0 } }, # First archway # Left Column DEF LeftColumn Transform { translation -2.0 3.0 0.0 children DEF Column Shape { appearance USE White geometry Cylinder { radius 0.3 height 6.0 } } }, # Right Column DEF RightColumn Transform { translation 2.0 3.0 0.0 children USE Column }, # Archway span DEF ArchwaySpan Transform { translation 0.0 6.05 0.0 children Shape { appearance USE White geometry Box{ size 4.6 0.4 0.6 } } }, # Left Roof DEF LeftRoof Transform { translation -1.15 7.12 0.0 rotation 0.0 0.0 1.0 0.524 children DEF Roof Shape { appearance USE White geometry Box { size 2.86 0.4 0.6 } } }, # Right Roof DEF LeftRoof Transform { translation 1.15 7.12 0.0 rotation 0.0 0.0 1.0 -0.524 children USE Roof } ] }